package it.fuesi.synotools.model.base;

/**
 * Created by pascotto on 28/10/14.
 */
public class VoidResponse extends SynologyBaseResponse<VoidDataObject> {

    public VoidResponse(){
        super();
    }

    public VoidResponse(boolean success){
        this();
        setSuccess(success);
    }

    public VoidResponse(String errorMessage){
        this(false);
        ErrorObject error = new ErrorObject();
        error.setCode(-1);
        setError(error);
    }

    @Override
    public void setData(VoidDataObject data) {

    }

    @Override
    public VoidDataObject getData() {
        return null;
    }
}
